package com.boruishangge.persagysdk.base;

import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.provider.Settings;

/**
 * Created by wuaomall@gmail.com on 2019/5/5.
 */
public class AppApplicationContext {
    //上下文
    public static Application application = null;
    //上下文
    public static Context context = null;
    //当前用户配置文件
    public static String currentUserPrefsName;
    public static String currentUserPrefPassword;

    public static void goApplicationmMeasee(Context context) {
        Intent intent = new Intent();
        intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.setData(Uri.fromParts("package", context.getPackageName(), null));
        context.startActivity(intent);
    }
}
